package com.punai.customer.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.punai.customer.domain.CusMaterialLinkUnit;

import java.util.List;

/**
 * 材料单位换算Service接口
 *
 * @author zxw
 * @date 2022-12-04
 */
public interface ICusMaterialLinkUnitService extends IService<CusMaterialLinkUnit>
{
    /**
     * 查询材料单位换算
     *
     * @param id 材料单位换算主键
     * @return 材料单位换算
     */
    public CusMaterialLinkUnit selectCusMaterialLinkUnitById(String id);

    /**
     * 查询材料单位换算列表
     *
     * @param cusMaterialLinkUnit 材料单位换算
     * @return 材料单位换算集合
     */
    public List<CusMaterialLinkUnit> selectCusMaterialLinkUnitList(CusMaterialLinkUnit cusMaterialLinkUnit);

    /**
     * 新增材料单位换算
     *
     * @param cusMaterialLinkUnit 材料单位换算
     * @return 结果
     */
    public int insertCusMaterialLinkUnit(CusMaterialLinkUnit cusMaterialLinkUnit);

    /**
     * 修改材料单位换算
     *
     * @param cusMaterialLinkUnit 材料单位换算
     * @return 结果
     */
    public int updateCusMaterialLinkUnit(CusMaterialLinkUnit cusMaterialLinkUnit);

    /**
     * 批量删除材料单位换算
     *
     * @param ids 需要删除的材料单位换算主键集合
     * @return 结果
     */
    public int deleteCusMaterialLinkUnitByIds(String[] ids);

    /**
     * 删除材料单位换算信息
     *
     * @param id 材料单位换算主键
     * @return 结果
     */
    public int deleteCusMaterialLinkUnitById(String id);

    public List<CusMaterialLinkUnit> getMaterialLinkUnitByItemId(String id,Long companyId);

    int setTransition(Long companyId,String materialId,List<CusMaterialLinkUnit> cusMaterialLinkUnitList);
}
